i=1
for i in range(1,10,2):
    print(("*"*i).center(9))
for j in range(7,0,-2):
    print(("*"*j).center(9))